Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: don't run tests on travis if only docs were changed #3908

Merged
merged 1 commit into from
Jan 4, 2017

Conversation

gkatsev
Copy link
Member

@gkatsev gkatsev commented Jan 3, 2017

Check to see if we're on travis and if the changes that we're running against only include files in the docs/ folder or are .md files and if so, don't run any tests. Locally, or, if non-doc changes, tests will still run.

@brandonocasey
Copy link
Contributor

brandonocasey commented Jan 3, 2017

would it be better to do this if only src/*, test/*, or package.json changed?

@gkatsev
Copy link
Member Author

gkatsev commented Jan 3, 2017

I'd prefer to black-list stuff rather than whitelist, particularly since the blacklist is smaller.

Copy link
Contributor

@brandonocasey brandonocasey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I think your right, after thinking a bit more I think we want to always run the tests by default. This might be helpful for our vjsstandard githooks as well. Will this work on windows?

@gkatsev
Copy link
Member Author

gkatsev commented Jan 3, 2017

Um... it should for as much as git commands work on windows.

@gkatsev
Copy link
Member Author

gkatsev commented Jan 3, 2017

Actually, the check is only made on travis, so, should be fine. Should always run tests locally.

Copy link
Member

@misteroneill misteroneill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM. It should work on Windows - even though it's not terribly relevant unless someone were mocking a Travis env for some silly reason.

@gkatsev gkatsev merged commit c239bd5 into videojs:master Jan 4, 2017
@gkatsev gkatsev deleted the no-tests-on-docs branch January 4, 2017 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants